Skip to content

Commit

Permalink
remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Jun 24, 2024
1 parent fae513c commit e7e7033
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/components/relative-time/relative-time.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default class SlRelativeTime extends ShoelaceElement {

@state() private isoTime = '';
@state() private relativeTime = '';
@state() private titleTime = '';

/**
* The date from which to calculate time from. If not set, the current date and time will be used. When passing a
Expand Down Expand Up @@ -71,14 +70,6 @@ export default class SlRelativeTime extends ShoelaceElement {
const { unit, value } = availableUnits.find(singleUnit => Math.abs(diff) < singleUnit.max)!;

this.isoTime = then.toISOString();
this.titleTime = this.localize.date(then, {
month: 'long',
year: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: 'numeric',
timeZoneName: 'short'
});

this.relativeTime = this.localize.relativeTime(Math.round(diff / value), unit, {
numeric: this.numeric,
Expand Down

0 comments on commit e7e7033

Please sign in to comment.