Skip to content

Commit

Permalink
Removes deprecated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Jul 26, 2019
1 parent 596c14b commit 49ed569
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jitsi/utils/version/AbstractVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ public String toString()
{
StringBuffer versionStringBuff = new StringBuffer();

versionStringBuff.append(Integer.toString(getVersionMajor()));
versionStringBuff.append(getVersionMajor());
versionStringBuff.append(".");
versionStringBuff.append(Integer.toString(getVersionMinor()));
versionStringBuff.append(getVersionMinor());

if(isPreRelease())
{
Expand Down
27 changes: 0 additions & 27 deletions src/main/java/org/jitsi/utils/version/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@
public interface Version
extends Comparable<Version>
{
/**
* The name of the <tt>System</tt> property the value of which is equal to
* the value of {@link #getApplicationName()}. Expected to be set by
* implementers of the <tt>VersionService</tt> and <tt>Version</tt>
* interfaces.
*/
String PNAME_APPLICATION_NAME = "sip-communicator.application.name";

/**
* The name of the <tt>System</tt> property the value of which is equal to
* the value of {@link #toString()}. Expected to be set by
* implementers of the <tt>VersionService</tt> and <tt>Version</tt>
* interfaces.
*/
String PNAME_APPLICATION_VERSION = "sip-communicator.version";

/**
* Returns the version major of the current Jitsi version. In an
* example 2.3.1 version string 2 is the version major. The version major
Expand Down Expand Up @@ -132,15 +116,4 @@ public interface Version
* MUST be Jitsi.
*/
String getApplicationName();

/**
* Returns a String representation of this Version instance. If you'd just
* like to obtain the version of Jitsi so that you could display
* it (e.g. in a Help->About dialog) then all you need is calling this
* method.
*
* @return a major.minor[.build] String containing the complete
* Jitsi version.
*/
String toString();
}
13 changes: 6 additions & 7 deletions src/main/java/org/jitsi/utils/version/VersionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@
package org.jitsi.utils.version;

/**
* The version service keeps track of the SIP Communicator version that we are
* currently running. Other modules (such as a Help->About dialog) query and
* use this service in order to show the current application version.
* The version service keeps track of the application version that we are
* currently running.
*
* @author Emil Ivov
*/
public interface VersionService
{
/**
* Returns a <tt>Version</tt> object containing version details of the SIP
* Communicator version that we're currently running.
* Returns a {@code Version} object containing version details of the
* application version that we're currently running.
*
* @return a <tt>Version</tt> object containing version details of the SIP
* Communicator version that we're currently running.
* @return a {@code Version} object containing version details of the
* application version that we're currently running.
*/
Version getCurrentVersion();

Expand Down

0 comments on commit 49ed569

Please sign in to comment.