summaryrefslogtreecommitdiff
path: root/extensions/source/macosx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-04 08:54:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-04 10:05:58 +0200
commitc5a518936d7fa6a37864b86e172a1edec1415836 (patch)
tree6d6958961a0453c026b8bc0160b119d571e7516d /extensions/source/macosx
parentc8c6c8319f07b960c30e05d0a730ea8f3f7583cc (diff)
Clean up unreferenced functions
Change-Id: Ie6560c806369a2d1698b4df43710f3aebb10ed6a
Diffstat (limited to 'extensions/source/macosx')
-rw-r--r--extensions/source/macosx/spotlight/GetMetadataForFile.h29
-rw-r--r--extensions/source/macosx/spotlight/GetMetadataForFile.m1
-rw-r--r--extensions/source/macosx/spotlight/main.m8
3 files changed, 32 insertions, 6 deletions
diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.h b/extensions/source/macosx/spotlight/GetMetadataForFile.h
new file mode 100644
index 000000000000..e0447f082f5e
--- /dev/null
+++ b/extensions/source/macosx/spotlight/GetMetadataForFile.h
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_EXTENSIONS_SOURCE_MACOSX_SPOTLIGHT_GETMETADATAFORFILE_H
+#define INCLUDED_EXTENSIONS_SOURCE_MACOSX_SPOTLIGHT_GETMETADATAFORFILE_H
+
+Boolean GetMetadataForFile(
+ void * thisInterface, CFMutableDictionaryRef attributes,
+ CFStringRef contentTypeUTI, CFStringRef pathToFile);
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.m b/extensions/source/macosx/spotlight/GetMetadataForFile.m
index 82f897745c85..a1dcdbe619ac 100644
--- a/extensions/source/macosx/spotlight/GetMetadataForFile.m
+++ b/extensions/source/macosx/spotlight/GetMetadataForFile.m
@@ -21,6 +21,7 @@
#include <CoreServices/CoreServices.h>
#include <Foundation/Foundation.h>
+#include "GetMetadataForFile.h"
#import "OOoSpotlightImporter.h"
/* -----------------------------------------------------------------------------
diff --git a/extensions/source/macosx/spotlight/main.m b/extensions/source/macosx/spotlight/main.m
index e231f69d2f51..6457ff7127c6 100644
--- a/extensions/source/macosx/spotlight/main.m
+++ b/extensions/source/macosx/spotlight/main.m
@@ -35,6 +35,8 @@
#include <CoreFoundation/CFPlugInCOM.h>
#include <CoreServices/CoreServices.h>
+#include "GetMetadataForFile.h"
+
// -----------------------------------------------------------------------------
// constants
// -----------------------------------------------------------------------------
@@ -54,12 +56,6 @@
// typedefs
// -----------------------------------------------------------------------------
-// The import function to be implemented in GetMetadataForFile.c
-Boolean GetMetadataForFile(void *thisInterface,
- CFMutableDictionaryRef attributes,
- CFStringRef contentTypeUTI,
- CFStringRef pathToFile);
-
// The layout for an instance of MetaDataImporterPlugIn
typedef struct __MetadataImporterPluginType
{