aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-06-21 07:26:30 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-06-21 07:26:30 +0000
commitacb8b74bb3aef4def0c18231910f11532ab5053f (patch)
treec79c8c201505ea050411199ff6643f516a8d5ab8 /vespalib
parentfc1604631cb71e1df1affb4c0980b9d166501ccd (diff)
Inline return AttrDFW::get_attribute() and clean up some old code with manual allocation.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/jsonwriter.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/vespalib/src/vespa/vespalib/util/jsonwriter.h b/vespalib/src/vespa/vespalib/util/jsonwriter.h
index 57380b46e5c..966a5e4b073 100644
--- a/vespalib/src/vespa/vespalib/util/jsonwriter.h
+++ b/vespalib/src/vespa/vespalib/util/jsonwriter.h
@@ -75,36 +75,4 @@ public:
stringref toString() const;
};
-template<typename T>
-struct JSONPrinter
-{
- static void printJSON(JSONWriter& w, T v) {
- w.appendInt64(v);
- }
-};
-
-template<>
-struct JSONPrinter<uint64_t>
-{
- static void printJSON(JSONWriter& w, uint64_t v) {
- w.appendUInt64(v);
- }
-};
-
-template<>
-struct JSONPrinter<float>
-{
- static void printJSON(JSONWriter& w, float v) {
- w.appendDouble(v);
- }
-};
-
-template<>
-struct JSONPrinter<double>
-{
- static void printJSON(JSONWriter& w, double v) {
- w.appendDouble(v);
- }
-};
-
}