Skip to content

Commit 91aa15d

Browse files
committed
CSSTUDIO-1950 Remove call to fireItemDataConfigChanged() when archives are removed from instances of PVItem.
1 parent 8567a08 commit 91aa15d

File tree

1 file changed

+2
-7
lines changed
  • app/databrowser/src/main/java/org/csstudio/trends/databrowser3/model

1 file changed

+2
-7
lines changed

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/model/PVItem.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,19 +243,14 @@ public void addArchiveDataSource(final ArchiveDataSource archs[])
243243
public void removeArchiveDataSource(final ArchiveDataSource archive)
244244
{
245245
// Archive removed -> (Probably) no need to get new data
246-
if (archives.remove(archive))
247-
fireItemDataConfigChanged(false);
246+
archives.remove(archive);
248247
}
249248

250249
/** @param archs Archives to remove as a source from this item. Ignored when not used. */
251250
public void removeArchiveDataSource(final List<ArchiveDataSource> archs)
252251
{
253-
boolean change = false;
254252
for (ArchiveDataSource archive : archs)
255-
if (archives.remove(archive))
256-
change = true;
257-
if (change)
258-
fireItemDataConfigChanged(false);
253+
archives.remove(archive);
259254
}
260255

261256
/** Replace existing archive data sources with given archives

0 commit comments

Comments
 (0)