We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e28bfe commit 4f22226Copy full SHA for 4f22226
1 file changed
src/google/protobuf/compiler/js/js_generator.cc
@@ -99,15 +99,6 @@ bool StrEndsWith(StringPiece sp, StringPiece x) {
99
return sp.size() >= x.size() && sp.substr(sp.size() - x.size()) == x;
100
}
101
102
-// Returns a copy of |filename| with any trailing ".protodevel" or ".proto
103
-// suffix stripped.
104
-// TODO(haberman): Unify with copy in compiler/cpp/internal/helpers.cc.
105
-std::string StripProto(const std::string& filename) {
106
- const char* suffix =
107
- StrEndsWith(filename, ".protodevel") ? ".protodevel" : ".proto";
108
- return StripSuffixString(filename, suffix);
109
-}
110
-
111
std::string GetSnakeFilename(const std::string& filename) {
112
std::string snake_name = filename;
113
ReplaceCharacters(&snake_name, "/", '_');
0 commit comments