Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: third_party/document_image_extractor/third_party/src/document_feature.js

Issue 1138123002: Update third_party/document_image_extractor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/document_image_extractor/third_party/src/document_feature.js
diff --git a/third_party/document_image_extractor/third_party/src/document_feature.js b/third_party/document_image_extractor/third_party/src/document_feature.js
deleted file mode 100644
index 09239d40772d16e5b3a6b7afcff9e8afe40f9050..0000000000000000000000000000000000000000
--- a/third_party/document_image_extractor/third_party/src/document_feature.js
+++ /dev/null
@@ -1,40 +0,0 @@
-goog.provide('image.collections.extension.DocumentFeature');
-
-goog.scope(function() {
-
-
-
-/**
- * This is a base class for all document features (e.g. title, snippet, image).
- * @param {number} relevance Relevance of this feature to the document.
- * @constructor
- */
-image.collections.extension.DocumentFeature = function(relevance) {
- /** @private {number} */
- this.relevance_ = relevance;
-};
-var DocumentFeature = image.collections.extension.DocumentFeature;
-
-
-/**
- * Returns the feature relevance.
- * @return {number}
- */
-DocumentFeature.prototype.getRelevance = function() {
- return this.relevance_;
-};
-
-
-/**
- * Compares two document features by their relevance.
- * @param {!DocumentFeature} feature1
- * @param {!DocumentFeature} feature2
- * @return {number}
- */
-DocumentFeature.compare = function(feature1, feature2) {
- if (feature1 == feature2) {
- return 0;
- }
- return feature1.getRelevance() - feature2.getRelevance();
-};
-}); // goog.scope

Powered by Google App Engine
This is Rietveld 408576698