Skip to content

Commit bf7e20a

Browse files
Remove unused node properties
1 parent 1f3ce69 commit bf7e20a

File tree

1 file changed

+1
-32
lines changed
  • schema/src/main/scala/io/shiftleft/codepropertygraph/schema

1 file changed

+1
-32
lines changed

schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Tags.scala

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package io.shiftleft.codepropertygraph.schema
22

3-
import io.shiftleft.codepropertygraph.schema.CpgSchema.PropertyDefaults
4-
import flatgraph.schema.Property.ValueType
53
import flatgraph.schema._
64

75
object Tags extends SchemaBase {
@@ -44,36 +42,7 @@ object Tags extends SchemaBase {
4442
import callGraph._
4543
implicit private val schemaInfo: SchemaInfo = SchemaInfo.forClass(getClass)
4644

47-
// node properties
48-
val symbol = builder
49-
.addProperty(name = "SYMBOL", valueType = ValueType.String, comment = "")
50-
.mandatory(PropertyDefaults.String)
51-
.protoId(ProtoIds.Symbol)
52-
53-
val methodShortName = builder
54-
.addProperty(name = "METHOD_SHORT_NAME", valueType = ValueType.String, comment = "")
55-
.mandatory(PropertyDefaults.String)
56-
.protoId(ProtoIds.MethodShortName)
57-
58-
val packageName = builder
59-
.addProperty(name = "PACKAGE_NAME", valueType = ValueType.String, comment = "")
60-
.mandatory(PropertyDefaults.String)
61-
.protoId(ProtoIds.PackageName)
62-
63-
val className = builder
64-
.addProperty(name = "CLASS_NAME", valueType = ValueType.String, comment = "")
65-
.mandatory(PropertyDefaults.String)
66-
.protoId(ProtoIds.ClassName)
67-
68-
val classShortName = builder
69-
.addProperty(name = "CLASS_SHORT_NAME", valueType = ValueType.String, comment = "")
70-
.mandatory(PropertyDefaults.String)
71-
.protoId(ProtoIds.ClassShortName)
72-
73-
val nodeLabel = builder
74-
.addProperty(name = "NODE_LABEL", valueType = ValueType.String, comment = "")
75-
.mandatory(PropertyDefaults.String)
76-
.protoId(ProtoIds.NodeLabel)
45+
// node properties
7746

7847
val taggedBy = builder
7948
.addEdgeType(name = "TAGGED_BY", comment = "Edges from nodes to the tags they are tagged by.")

0 commit comments

Comments
 (0)