summaryrefslogtreecommitdiffstats
path: root/searchsummary
diff options
context:
space:
mode:
Diffstat (limited to 'searchsummary')
-rw-r--r--searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp
index 198f2525244..fccfe0e73c8 100644
--- a/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp
+++ b/searchsummary/src/vespa/searchsummary/docsummary/attributedfw.cpp
@@ -24,44 +24,6 @@ using search::attribute::BasicType;
namespace search::docsummary {
-ResType inferType(const IAttributeVector & vec) {
- ResType retval;
- if (vec.hasMultiValue()) {
- retval = RES_STRING;
- } else {
- if (vec.isStringType()) {
- retval = RES_STRING;
- } else {
- size_t fw = vec.getFixedWidth();
- if (vec.isIntegerType()) {
- if (fw == sizeof(uint8_t)) {
- retval = RES_BYTE;
- } else if (fw == sizeof(uint16_t)) {
- retval = RES_SHORT;
- } else if (fw == sizeof(uint32_t)) {
- retval = RES_INT;
- } else {
- retval = RES_INT64;
- }
- } else if (vec.isFloatingPointType()) {
- retval = (fw == sizeof(float)) ? RES_FLOAT : RES_DOUBLE;
- } else {
- BasicType::Type t = vec.getBasicType();
- switch (t) {
- case BasicType::TENSOR:
- retval = RES_TENSOR;
- break;
- default:
- retval = RES_STRING;
- }
- }
- }
- }
- return retval;
-}
-
-//-----------------------------------------------------------------------------
-
AttrDFW::AttrDFW(const vespalib::string & attrName) :
_attrName(attrName)
{