Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Open ZGY
Commits
0de14d12
Commit
0de14d12
authored
May 27, 2021
by
Paal Kvamme
Browse files
Yagni: Remove unused method in genlod.
parent
2c15bb96
Changes
2
Hide whitespace changes
Inline
Side-by-side
native/src/impl/genlod.cpp
View file @
0de14d12
...
...
@@ -196,15 +196,6 @@ GenLodBase::_write(
this
->
_report
(
data
.
get
());
}
/**
* This is a stub that must be redefined except for low level unit tests.
* Finalize and write the computed statistics and histogram to the file.
*/
void
GenLodBase
::
_savestats
()
{
}
/**
* Given a starting position and a size, reduce the size if needed so
* it fits inside the survey. The result may be empty. Note that there
...
...
@@ -309,7 +300,6 @@ GenLodImpl::call()
this
->
_reporttotal
(
_willneed
());
this
->
_report
(
nullptr
);
this
->
_calculate
(
std
::
array
<
std
::
int64_t
,
3
>
{
0
,
0
,
0
},
this
->
_nlods
-
1
);
this
->
_savestats
();
// Remove?
return
std
::
make_tuple
(
this
->
_stats
,
this
->
_histo
);
}
...
...
@@ -843,7 +833,7 @@ GenLodC::GenLodC(
* To complicate the above, fewer than 8 bricks might be involved if
* close to the survey border.
*
* To complicate even furt
g
er, when _calculate chooses how much data
* To complicate even furt
h
er, when _calculate chooses how much data
* to process then it will read 4 brick-columns at "readlod".
* I suspect one brick-column would have worked just as well.
*/
...
...
@@ -993,10 +983,4 @@ GenLodC::_write(
}
}
void
GenLodC
::
_savestats
()
{
// TODO-Low: Remove this / yagni? Currently finalize() handles this.
}
}
// namespace
native/src/impl/genlod.h
View file @
0de14d12
...
...
@@ -89,7 +89,6 @@ protected:
virtual
void
_write
(
std
::
int32_t
lod
,
const
index3_t
&
pos
,
const
std
::
shared_ptr
<
const
DataBuffer
>&
data
)
const
;
virtual
void
_savestats
();
index3_t
_clipsizetosurvey
(
std
::
int32_t
lod
,
const
index3_t
&
pos
,
const
index3_t
&
size
)
const
;
void
_report
(
const
DataBuffer
*
data
)
const
;
void
_reporttotal
(
std
::
int64_t
total
)
{
_total
=
total
;
}
...
...
@@ -169,7 +168,6 @@ protected:
void
_write
(
std
::
int32_t
lod
,
const
index3_t
&
pos
,
const
std
::
shared_ptr
<
const
DataBuffer
>&
data
)
const
override
;
void
_savestats
()
override
;
};
}
// namespace
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment