From 7acd8dcac847ea4a80236d58c2890a6db214e66e Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Thu, 2 Feb 2017 10:26:11 +1100 Subject: [PATCH] dead code: remove splitOffAnchoredLeadingLiteral --- src/nfagraph/ng_literal_analysis.cpp | 8 +------- src/nfagraph/ng_literal_analysis.h | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/nfagraph/ng_literal_analysis.cpp b/src/nfagraph/ng_literal_analysis.cpp index a5f3468b..88e052db 100644 --- a/src/nfagraph/ng_literal_analysis.cpp +++ b/src/nfagraph/ng_literal_analysis.cpp @@ -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; diff --git a/src/nfagraph/ng_literal_analysis.h b/src/nfagraph/ng_literal_analysis.h index 6fd9c525..6bb87556 100644 --- a/src/nfagraph/ng_literal_analysis.h +++ b/src/nfagraph/ng_literal_analysis.h @@ -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 &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,