aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 03:10:59 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 03:10:59 +0000
commitf58f9f62d751748cf1ac01bfd92a4a80fc449fab (patch)
tree44a709d554a294b2d32b833678c9fcd79dbe81b6 /include/utils
parent0e9b41a8633797ac4da7e6660c8430bacc5a5787 (diff)
remove as these are replaced by SkJSON
git-svn-id: http://skia.googlecode.com/svn/trunk@2965 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/SkJSONObject.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/include/utils/SkJSONObject.h b/include/utils/SkJSONObject.h
deleted file mode 100644
index d83183472d..0000000000
--- a/include/utils/SkJSONObject.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkJSONObject_DEFINED
-#define SkJSONObject_DEFINED
-
-#include "SkTypes.h"
-
-class SkString;
-
-class SkJSONObject {
-public:
- SkJSONObject() : fHead(NULL), fTail(NULL) {}
- ~SkJSONObject();
-
- enum Type {
- kInvalid,
-
- kObject,
- kString,
- kInt,
- kFloat,
- kBool,
- };
-
- void addString(const char name[], const char value[]);
- void addInt(const char name[], int32_t value);
- void addFloat(const char name[], float value);
- void addBool(const char name[], bool value);
- /**
- * Add the value object to this object, taking over
- * ownership of the value object.
- */
- void addObject(const char name[], SkJSONObject* value);
-
- Type find(const char name[], intptr_t* = NULL) const;
- bool findString(const char name[], SkString* = NULL) const;
- bool findInt(const char name[], int32_t* = NULL) const;
- bool findFloat(const char name[], float* = NULL) const;
- bool findBool(const char name[], bool* = NULL) const;
- bool findObject(const char name[], SkJSONObject** = NULL) const;
-
- void dump() const;
-
-private:
- struct Slot;
- Slot* fHead;
- Slot* fTail;
-
- const Slot* findSlot(const char name[]) const;
- const Slot* findSlotAndType(const char name[], Type) const;
- Slot* addSlot(Slot*);
- void dumpLevel(int level) const;
-};
-
-#endif