aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:37:46 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:38:08 -0700
commit86645b32e172301088517bfb860b2e0990b3e5ec (patch)
tree3a085358e6a382074c7569b997a006f2765b7c73 /history.cpp
parent977c585f8be898e327221911b505da577619520a (diff)
Work towards getting function.h off of shared_ptr
Diffstat (limited to 'history.cpp')
-rw-r--r--history.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/history.cpp b/history.cpp
index 935b2eab..547792f4 100644
--- a/history.cpp
+++ b/history.cpp
@@ -136,18 +136,6 @@ static void escape_yaml(std::string &str);
/** Undoes escape_yaml */
static void unescape_yaml(std::string &str);
-/* Custom deleter for our shared_ptr */
-class history_item_data_deleter_t {
- private:
- const bool free_it;
- public:
- history_item_data_deleter_t(bool flag) : free_it(flag) { }
- void operator()(const wchar_t *data) {
- if (free_it)
- free((void *)data);
- }
-};
-
/* We can merge two items if they are the same command. We use the more recent timestamp and the longer list of required paths. */
bool history_item_t::merge(const history_item_t &item)
{