Skip to content

Commit

Permalink
Minor version bump and remove undocumented stuff
Browse files Browse the repository at this point in the history
* Removing the `modality` property as it was completely undocumented or
tested
  • Loading branch information
Tokazama committed Feb 8, 2020
1 parent 7fb4095 commit df0ef60
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FieldProperties"
uuid = "127e4479-4c95-493a-afaa-609d38175b70"
authors = ["zchristensen "]
version = "0.5.1"
version = "0.5.2"

[deps]
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Expand Down
4 changes: 1 addition & 3 deletions src/FieldProperties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ export
@defprop,
@properties,
propconvert,
proptype,
proptype, # TODO remove after deprecation
# general properties
description,
description!,
description_list,
status,
status!,
modality,
modality!,
name,
name!,
label,
Expand Down
2 changes: 0 additions & 2 deletions src/general.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# general properties that just need a home
@defprop Status{:status}

@defprop Modality{:modality}

"""
Property providing label for parent structure.
"""
Expand Down
8 changes: 0 additions & 8 deletions src/properties.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""
@properties T block
Syntactic sugar for custom `getproperty`, `setproperty!`, and `propertynames` methods.
Expand Down Expand Up @@ -209,13 +208,6 @@ macro properties(T, lines)
nested_getter_blk = callexpr(esc(:getproperty), callexpr(esc(:getfield), esc(self), body), esc(:p))
end
!in(body, nested_names) && push!(nested_names, body)
elseif body isa Symbol
if is_setter
nested_setter_blk = callexpr(esc(:setproperty!), callexpr(esc(:getfield), esc(self), QuoteNode(body)), esc(:p), esc(val))
else
nested_getter_blk = callexpr(esc(:getproperty), callexpr(esc(:getfield), esc(self), QuoteNode(body)), esc(:p))
end
!in(body, nested_names) && push!(nested_names, body)
elseif body isa Expr && body.head == :tuple
body = body.args
n = length(body)
Expand Down

2 comments on commit df0ef60

@Tokazama
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/9079

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.2 -m "<description of version>" df0ef6035e41cff9cb7e2b5864b5c92c10f28b59
git push origin v0.5.2

Please sign in to comment.