From 9bf7e65f08acde10aa530d137ce6995dac5f65c5 Mon Sep 17 00:00:00 2001 From: Craig Silverstein Date: Thu, 3 Nov 2011 23:12:52 +0000 Subject: Now I can get rid of the old constructor! R=jkline,ncalvin DELTA=28 (0 added, 27 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=3169 git-svn-id: https://gflags.googlecode.com/svn/trunk@65 6586e3c6-dcc4-952a-343f-ff74eb82781d --- src/gflags.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/gflags.cc') diff --git a/src/gflags.cc b/src/gflags.cc index a136fde..9b4d66c 100644 --- a/src/gflags.cc +++ b/src/gflags.cc @@ -1422,25 +1422,6 @@ FlagRegisterer::FlagRegisterer(const char* name, const char* type, FlagRegistry::GlobalRegistry()->RegisterFlag(flag); // default registry } -// TODO(csilvers): remove this by 1 Sept 2011. -FlagRegisterer::FlagRegisterer(const char* name, const char* type, - const char* help, const char* filename, - void* current_storage, void* defvalue_storage) { - if (help == NULL) - help = ""; - // FlagValue expects the type-name to not include any namespace - // components, so we get rid of those, if any. - if (strchr(type, ':')) - type = strrchr(type, ':') + 1; - FlagValue* current = new FlagValue(current_storage, type, false); - FlagValue* defvalue = new FlagValue(defvalue_storage, type, false); - // Importantly, flag_ will never be deleted, so storage is always good. - CommandLineFlag* flag = new CommandLineFlag(name, help, filename, - NULL, current, defvalue); - FlagRegistry::GlobalRegistry()->RegisterFlag(flag); // default registry -} - - // -------------------------------------------------------------------- // GetAllFlags() // The main way the FlagRegistry class exposes its data. This -- cgit v1.2.3