diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-18 11:39:47 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-18 11:39:47 +0200 |
commit | 02288f2c754c8d54d138a736fbada68706bf035e (patch) | |
tree | 4bce0eb4968b02caed179e89b516a4b34e3c7f45 /lib/percept/src/egd_font.erl | |
parent | a41966287e6d5d973ab15e327c5065ea1692900e (diff) | |
parent | bcf2da2389d1df99629ae524a4cc451bdf6224ae (diff) | |
download | otp-02288f2c754c8d54d138a736fbada68706bf035e.tar.gz otp-02288f2c754c8d54d138a736fbada68706bf035e.tar.bz2 otp-02288f2c754c8d54d138a736fbada68706bf035e.zip |
Merge branch 'egil/percept/fix-unmatched_return/OTP-13595'
* egil/percept/fix-unmatched_return/OTP-13595:
egd: Fix unmatched return warnings
egd: Small code style refactoring
percept: Fix unmatched return warnings
percept: Small code style refactoring
Diffstat (limited to 'lib/percept/src/egd_font.erl')
-rw-r--r-- | lib/percept/src/egd_font.erl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/percept/src/egd_font.erl b/lib/percept/src/egd_font.erl index 95203d5441..ef1cc434df 100644 --- a/lib/percept/src/egd_font.erl +++ b/lib/percept/src/egd_font.erl @@ -51,9 +51,7 @@ %% %%========================================================================== -%% -%% Interface functions -%% +%% Interface functions %%========================================================================== size(Font) -> @@ -70,15 +68,14 @@ load(Filename) -> load_font_header(Font). %%========================================================================== -%% -%% Internal functions -%% +%% Internal functions %%========================================================================== %% ETS handler functions initialize_table() -> - ets:new(egd_font_table, [named_table, ordered_set, public]). + egd_font_table = ets:new(egd_font_table, [named_table, ordered_set, public]), + ok. glyph_insert(Font, Code, Translation, LSs) -> Element = {{Font, Code}, Translation, LSs}, |