From fdea40501030878c24e72f1a041d8342e0bf62ae Mon Sep 17 00:00:00 2001 From: Markus Lottmann Date: Mon, 5 Aug 2024 17:57:01 +0200 Subject: [PATCH] Cleanup: Remove language constant for SOLIDITY. (#1780) * Cleanup: Remove language constant for SOLIDITY. This frontend was never introduced to joern and thus we do not need the constant. --- .../shiftleft/codepropertygraph/generated/Languages.java | 4 ---- .../io/shiftleft/codepropertygraph/schema/MetaData.scala | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Languages.java b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Languages.java index 5be3dac83..e2dceeb0d 100644 --- a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Languages.java +++ b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Languages.java @@ -50,9 +50,6 @@ public class Languages { /** Source-based JS frontend based on Babel */ public static final String JSSRC = "JSSRC"; -/** Solidity language frontend */ -public static final String SOLIDITY = "SOLIDITY"; - /** Source-based frontend for Ruby */ public static final String RUBYSRC = "RUBYSRC"; @@ -78,7 +75,6 @@ public class Languages { add(JAVASRC); add(PYTHONSRC); add(JSSRC); -add(SOLIDITY); add(RUBYSRC); add(SWIFTSRC); add(CSHARPSRC); diff --git a/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/MetaData.scala b/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/MetaData.scala index cadb9e3a9..f853eff39 100644 --- a/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/MetaData.scala +++ b/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/MetaData.scala @@ -118,12 +118,7 @@ object MetaData extends SchemaBase { valueType = ValueType.String, comment = "Source-based JS frontend based on Babel" ).protoId(15), - Constant( - name = "SOLIDITY", - value = "SOLIDITY", - valueType = ValueType.String, - comment = "Solidity language frontend" - ).protoId(16), + // Removed protoId 16. Used to be "Solidity". Constant( name = "RUBYSRC", value = "RUBYSRC",