]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
dead code: remove splitOffAnchoredLeadingLiteral
authorJustin Viiret <justin.viiret@intel.com>
Wed, 1 Feb 2017 23:26:11 +0000 (10:26 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 04:56:49 +0000 (14:56 +1000)
src/nfagraph/ng_literal_analysis.cpp
src/nfagraph/ng_literal_analysis.h

index a5f3468b8f624f33cd0a0acda70b98126b4041e8..88e052db48d132c67390b7f047777184eb5eb017 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -853,12 +853,6 @@ bool splitOffLeadingLiteral(const NGHolder &g, ue2_literal *lit_out,
     return splitOffLeadingLiteral_i(g, false, lit_out, rhs);
 }
 
-bool splitOffAnchoredLeadingLiteral(const NGHolder &g, ue2_literal *lit_out,
-                                    NGHolder *rhs) {
-    return splitOffLeadingLiteral_i(g, true, lit_out, rhs);
-}
-
-
 bool getTrailingLiteral(const NGHolder &g, ue2_literal *lit_out) {
     if (in_degree(g.acceptEod, g) != 1) {
         return false;
index 6fd9c52519699f7df8957f3076cd9bd663bb189f..6bb87556102d5225ba1141eb026e9e8f72c57470 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -87,9 +87,6 @@ u64a sanitizeAndCompressAndScore(std::set<ue2_literal> &s);
 bool splitOffLeadingLiteral(const NGHolder &g, ue2_literal *lit_out,
                             NGHolder *rhs);
 
-bool splitOffAnchoredLeadingLiteral(const NGHolder &g, ue2_literal *lit_out,
-                            NGHolder *rhs);
-
 bool getTrailingLiteral(const NGHolder &g, ue2_literal *lit_out);
 
 /** \brief Returns true if the given literal is the only thing in the graph,