Skip to content

Commit

Permalink
🩹 Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleCh1cken committed Jan 15, 2024
1 parent 8a7240d commit 37dd3d3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions themes/radial/components/graphs.typ
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,7 @@
)
}

#let parse_timestamp(timestamp) = {
let data = timestamp.matches(regex("(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})"))
let captures = data.at(0).captures

datetime(
year: int(captures.at(0)), month: int(captures.at(1)), day: int(captures.at(2)), hour: int(captures.at(3)), minute: int(captures.at(4)), second: int(captures.at(5)),
)
}

/// Example Usage:
/// ```typ
Expand All @@ -124,8 +117,8 @@
/// -> content
#let plot(
title: "",
x_label: "",
y_label: "",
x-label: "",
y-label: "",
length: auto,
..data
) = {
Expand Down

0 comments on commit 37dd3d3

Please sign in to comment.