summaryrefslogtreecommitdiff
path: root/fxjs/cjs_report.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-23 20:37:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-23 20:37:33 +0000
commitce0f004523fdc098186bc453a85543c20b0059a7 (patch)
tree160264daa27f156a16397928f83ce94b319ef588 /fxjs/cjs_report.h
parentf52fb7021299ae5a49121ea94774656d88b3fb1a (diff)
downloadpdfium-ce0f004523fdc098186bc453a85543c20b0059a7.tar.xz
Remove CJS_Report class.
Its methods are never registered with JavaScript, so they can't be called, and they don't do anything anyways. In fact, the signature of its DefineJSObjects() method is about 2 years out of date ... Change-Id: I028d43ff2c7fa5ab0f59c5790fee3fa91d2f20ac Reviewed-on: https://pdfium-review.googlesource.com/c/44533 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_report.h')
-rw-r--r--fxjs/cjs_report.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/fxjs/cjs_report.h b/fxjs/cjs_report.h
deleted file mode 100644
index 919664dd65..0000000000
--- a/fxjs/cjs_report.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef FXJS_CJS_REPORT_H_
-#define FXJS_CJS_REPORT_H_
-
-#include <vector>
-
-#include "fxjs/cjs_object.h"
-#include "fxjs/js_define.h"
-
-class CJS_Report final : public CJS_Object {
- public:
- static int GetObjDefnID();
- static void DefineJSObjects(CFXJS_Engine* pEngine, FXJSOBJTYPE eObjType);
-
- CJS_Report(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
- ~CJS_Report() override;
-
- JS_STATIC_METHOD(save, CJS_Report);
- JS_STATIC_METHOD(writeText, CJS_Report);
-
- private:
- static int ObjDefnID;
- static const char kName[];
- static const JSMethodSpec MethodSpecs[];
-
- CJS_Result save(CJS_Runtime* pRuntime,
- const std::vector<v8::Local<v8::Value>>& params);
- CJS_Result writeText(CJS_Runtime* pRuntime,
- const std::vector<v8::Local<v8::Value>>& params);
-};
-
-#endif // FXJS_CJS_REPORT_H_