From 4f80a129f13daae72e0463923250534e0d437026 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 30 Nov 2014 00:17:08 +0100 Subject: fs/Charset: return std::string from PathFromUTF8() Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only. --- src/fs/AllocatedPath.hxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/fs/AllocatedPath.hxx') diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index c345470c8..73b6891ad 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -44,13 +44,6 @@ class AllocatedPath { string value; - struct Donate {}; - - /** - * Donate the allocated pointer to a new #AllocatedPath object. - */ - AllocatedPath(Donate, pointer _value); - AllocatedPath(const_pointer _value):value(_value) {} AllocatedPath(string &&_value):value(std::move(_value)) {} -- cgit v1.2.3